PROJECT( apoget )

add_definitions( -DDLL_EXPORTS )
include_directories ("${PROJECT_SOURCE_DIR}")
include_directories ("${PROJECT_SOURCE_DIR}\\..\\..\\boost_1_57_0")
include_directories ("${PROJECT_SOURCE_DIR}\\..\\Middleware\\DirectX9\\Include")

#Headers
#------- 
SET (apoget_headers apoget.h Constants.h Game.h)

#Sources
#------- 
SET (apoget_sources Game.cpp)

#Add More Sources
#----------------
ADD_SUBDIRECTORY("${PROJECT_SOURCE_DIR}/Support")
ADD_SUBDIRECTORY("${PROJECT_SOURCE_DIR}/Support/Graphics")
ADD_SUBDIRECTORY("${PROJECT_SOURCE_DIR}/Support/Timing")

#Create Library
#--------------

link_directories ("${PROJECT_SOURCE_DIR}\\..\\Middleware\\DirectX9\\Lib\\x86")
ADD_LIBRARY (${PROJECT_NAME} SHARED ${apoget_headers} ${apoget_sources})

#Linker
#------
TARGET_LINK_LIBRARIES (${PROJECT_NAME} 
 d3d9
 d3dx9
 Xinput
 Xinput9_1_0
 winmm
 Shlwapi
)